package com.chenfan.mcn.dao;

import com.chenfan.common.extension.mybatisplus.enhanced.EnhancedBaseMapper;
import com.chenfan.mcn.model.StarMonthlySettlementSub;
import com.chenfan.mcn.model.vo.AccruedTaxSummaryExcel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 红人月度结算单拆单表 Mapper 接口
 * </p>
 *
 * @author wulg
 * @since 2022-01-13
 */
public interface StarMonthlySettlementSubMapper extends EnhancedBaseMapper<StarMonthlySettlementSub> {

    /**
     * 汇总Excel导入的子结算单信息
     * @param subSettlementIds
     * @return
     */
    List<AccruedTaxSummaryExcel> summaryExcel(@Param("subSettlementIds") List<Long> subSettlementIds);

    /**
     *
     * @param settlementId
     * @param isClear
     * @return
     */
    Integer updateFinanceConfirmedDevidedAmountDetail(@Param("settlementId") Long settlementId, @Param("isClear") boolean isClear);
}
